package com.yh.doing.interpret_pattern;

/**
 * @program: design-patterns
 * @description: ${description}
 * @author: yangh0597@163.com
 * @date: 2021-03-09 17:24
 * @problem:
 **/
public class AddExpression extends FuHaoExpression{


    public AddExpression(Expression left, Expression right) {
        super(left, right);
    }


    @Override
    public int interprete(Context context) {
        return this.left.interprete(context)+this.right.interprete(context);
    }

}
